package com.wangzhixuan.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wangzhixuan.model.CusGroup;
import com.wangzhixuan.model.vo.CusMapVo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;


/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author zhixuan.wang
 * @since 2017-09-25
 */
public interface CusGroupMapper extends BaseMapper<CusGroup> {

	List<CusGroup> selectCusGroupPage(Pagination page, Map<String, Object> params);
	
	List<Map<String,Object>> listCusGroup(@Param("speId")Integer speId,@Param("metId")Integer metId);
	
	List<Map<String,Object>> listCus(@Param("cusId")Integer cusId,@Param("speId")Integer speId,@Param("metId")Integer metId);
	
	Integer cusCounts(@Param("cusId")Integer cusId,@Param("speId")Integer speId,@Param("metId")Integer metId);
	
	Integer selectCusGroupId(@Param("cusGroup") String cusGroup);
	
	List<CusGroup> listCusGroup2();
	
	List<CusMapVo> cusMapList();

}